Call calendar_compute_days() after setting priv->week_start.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Oct 2005 03:28:36 +0000 (03:28 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 4 Oct 2005 03:28:36 +0000 (03:28 +0000)
2005-10-03  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkcalendar.c (gtk_calendar_init): Call
calendar_compute_days() after setting priv->week_start.

ChangeLog
ChangeLog.pre-2-10
gtk/gtkcalendar.c

index b519d894f6f7db3a2b27ee63cac00c70009df1e8..63eadd987e2a342f13268b0cfe1c459a7fa6a1da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcalendar.c (gtk_calendar_init): Call 
+       calendar_compute_days() after setting priv->week_start.
+
 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
index b519d894f6f7db3a2b27ee63cac00c70009df1e8..63eadd987e2a342f13268b0cfe1c459a7fa6a1da 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-03  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkcalendar.c (gtk_calendar_init): Call 
+       calendar_compute_days() after setting priv->week_start.
+
 2005-10-03  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
index af7e43b0adde698a0234a35d6431a6c3c3b6476d..aaedee9f53b654942b72b8cf06db110095ce3821 100644 (file)
@@ -598,8 +598,6 @@ gtk_calendar_init (GtkCalendar *calendar)
   calendar->month = tm->tm_mon;
   calendar->year  = 1900 + tm->tm_year;
 
-  calendar_compute_days (calendar);
-
   for (i=0;i<31;i++)
     calendar->marked_date[i] = FALSE;
   calendar->num_marked_dates = 0;
@@ -684,6 +682,8 @@ gtk_calendar_init (GtkCalendar *calendar)
       priv->week_start = 0;
     }
 #endif
+
+  calendar_compute_days (calendar);
 }
 
 \f